<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<strong>rt-repeat</strong><br/>
Repeats a DOM node with its subtree for each item in an array. <br/>
The syntax is rt-repeat="itemVar in arrayExpr", where the element, itemVar, will be available in JavaScript context, and an itemVarIndex will be created to represent the index of the item.<br/>
By using this naming scheme, repeated expressions have access to all levels of nesting.<br/>

<a href="https://github.com/wix/react-templates/blob/gh-pages/README.md#rt-repeat">Online documents</a><br/>

<br/>
<h2>Sample:</h2>
<br/>

<pre>
    &lt;div rt-repeat=&quot;myNum in this.getMyNumbers()&quot;&gt;{myNumIndex}. {myNum}&lt;/div&gt;
</pre>

<h2>Compiled:</h2>
<pre>
define([
    'react',
    'lodash'
], function (React, _) {
    'use strict';
    function repeatMyNum1(myNum, myNumIndex) {
        return React.DOM.div({}, myNumIndex + '. ' + myNum);
    }
    return function () {
        return _.map(this.getMyNumbers(), repeatMyNum1.bind(this));
    };
});
</pre>
</body>
</html>
